package com.scut.campus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.campus.dto.PageDTO;
import com.scut.campus.entity.Post;
import com.scut.campus.query.base.PageQuery;
import com.scut.campus.query.PostQuery;
import com.scut.campus.vo.PostVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PostService extends IService<Post> {

    void visitPost(String postId);

    PageDTO<Post> queryMyPost(PageQuery pageQuery);

    List<PostVo> queryMainPost(PostQuery postQuery);

    Post getSinglePost(String postId);

    /**
     * 根据postId点赞帖子
     * @param postId
     */
    void likePost(String postId);

    /**
     * 根据postId取消点赞帖子
     * @param postId
     */
    void dislikePost(String postId);



}
